<include file="public@header" />
</head>

<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="active">
                <a>用户列表</a>
            </li>
        </ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
            用户ID：
            <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}" placeholder="请输入用户ID">
            关键字：
            <input class="form-control" type="text" name="username" style="width: 200px;" value="{:input('request.username')}" placeholder="账号">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('index')}">清空</a>
        </form>
        <form method="post" class="js-ajax-form">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>账号</th>
                        <th>昵称</th>
                        <th>手机号</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.username}</td>
                            <td>{$vo.nickname}</td>
                            <td>{$vo.mobile}</td>
                            <td>
                                <a href="{:url('logout',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确认将用户登出？">下线</a>
                                <a href="{:url('remove',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确认删除用户？">删除</a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
            <div class="pagination">{$page}</div>
        </form>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>
